<include file="__THEME__/header" />
<include file="__THEME__/editor" />
<script type="text/javascript" src="__APP__/Js/common.js"></script>
<link  href="__APP__/group.css" rel="stylesheet" type="text/css"/>
<script>
	function checkform(v_form){
		var content = E.getData();
	    content = removeHTMLTag(content);
		if(checkPostContent(content) < 10) {
			ui.error('内容不能小于10个字');
			return false;
		}
		return true;
	}
</script>
<style>
.user-set-sz span{height:16px;}
</style>
<div class="content_holder content">
<div style="padding:20px;width:920px;margin:0 auto;background:#fff">
<div class="no_bg"><!-- 内容 begin  -->
  <!-- 用户组件列表 begin -->   
  <!-- 用户组件列表 end -->
  <div class="mainbox"> <!-- 右侧内容 begin  -->
  <div class=page_title> <!-- page_title begin -->
  	<div class="left" style="width:80px;">
    	<span class="headpic50"><a href="{:U('group/Group/index',array('gid'=>$groupinfo['id']))}"><img src="{$groupinfo['logo']|logo_path_to_url}" /></a></span>
    </div>
    <div class="left" style="width:583px;">
      <h2>
    	<a href="{:U('group/Group/index',array('gid'=>$groupinfo['id']))}">{$groupinfo['name']}</a> &gt; 
    	<a href="{:U('group/Topic/index',array('gid'=>$groupinfo['id']))}">话题区</a>
      </h2>
    </div>
    <div class="left alR lh30" style="width:260px;">
      <a href="JavaScript:window.history.back()">&lt;&lt;返回上一页</a>
    </div>
  <div class="c"></div>
</div><!-- page_title end -->
  <!-- 切换标签 end  -->
  <div class="groupBox">
  <div class="boxL" style="width:100%;">
    <div class="box1">
  	<h3>编辑回复</h3>
  	<form method="post" action="{:U('group/Topic/editPost',array('gid'=>$gid,'pid'=>$post['id']))}" onbeforesubmit="checkform(this);">
    <ul class="pt10">
          <li class="li pt10">
          	
            <div class="left" style="width:100%">
             {:W('Editor',array('contentName'=>'content','value'=>$post['content']))}
              <div style="margin-top:10px;">
               <div class="left" style="width:100%">
                <div id="attach_upload_data" class="mb5">
                <php>if($post['attach']) { $attach = unserialize($post['attach']); </php>
						<volist name="attach" id="data">
						<php>$data = explode('|',$data);</php>
						<input class="attach{$data[0]}" type="hidden" value="{$data[0]}|{$data[1]}" name="attach[]"/>
					   <div>
						<a class="attach{$data[0]}" onClick="deleteAttach({$data[0]})" href="javascript:void(0)">[删除]</a>
						<span class="attach{$data[0]}">{$data[1]}</span>
					 </div>
						</volist>
				<php>}</php>
				</div>
              <input type="hidden" name="editsubmit" value="do" >              
			  <input type="hidden" value="{$gid}" name="gid">
			  <input type="hidden" value="{$post.id}" name="pid">			  
              <input name="button" type="submit" class="btn_b mt5" id="button" value="修改" />
              </div>
              </div>
            </div>
       	  </li>
      </ul>
      </form>
    </div>
    </div>
  <!-- end  -->
  </div>  </div><!-- 右侧内容 end  -->
  <div class="c"></div>
</div>
</div>
</div>
<include file="__THEME__/public_footer" />